package com.cq.hd.system.service.impl;

import com.cq.hd.common.utils.BeanUtils;
import com.cq.hd.system.api.dto.HfRequestRecordSaveDto;
import com.cq.hd.system.po.TbHfRequestRecordPo;
import com.cq.hd.system.mapper.TbHfRequestRecordMapper;
import com.cq.hd.system.service.TbHfRequestRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 汇付申请单记录表 服务实现类
 * </p>
 *
 * @author mYunYu
 * @since 2023-12-28
 */
@Service
public class TbHfRequestRecordServiceImpl extends ServiceImpl<TbHfRequestRecordMapper, TbHfRequestRecordPo> implements TbHfRequestRecordService {

    @Override
    public Boolean saveRequestRecord(HfRequestRecordSaveDto hfRequestRecordSaveDto) {
        TbHfRequestRecordPo tbHfRequestRecordPo = new TbHfRequestRecordPo();
        BeanUtils.copyProperties(hfRequestRecordSaveDto, tbHfRequestRecordPo);
        return baseMapper.insert(tbHfRequestRecordPo) > 0;
    }
}
